<div class="page-content">
    <div class="col-sm-6 pull-right">
        <span class="btn btn-sm btn-primary pull-right" onclick="javascript:window.location.href = 'info'">
            添加
            <i class="icon-reply icon-only"></i>
        </span>
    </div>
    <div class="page-header">
        <h1>
            {:model('menu')->getName()} {gt name="$Request.get.group_id" value="0"} [{:model('AdminGroup')->getGroupName($Request.get.group_id)}]{/gt}
        </h1>
    </div><!-- /.page-header -->

    <form class="form-horizontal" role="form" action="{:url('index')}" method="post" name="myfrom">
        <div  class="form-group" >
            <label class="control-label pull-left" style="margin-left: 20px;">断面名称：</label>
            <span  >
                <input type="text" class="col-xs-5 col-sm-2" value="{$posname}" name="posname" placeholder="请输入断面名称">
            </span>
            <label class="control-label pull-left" style="margin-left: 20px;">集团：</label>
            <span class="pull-left">
                <select name="com_id" style="width: 200px" class="col-xs-5 col-sm-2">
                    <option value="0" />请选择集团</option>
                    {foreach name="company" item="v"}
                    <option value="{$v.id}" {if condition="$v.id eq $com_id"}selected{/if}>{$v.name}</option>
                    {/foreach}
                </select>
            </span>

            <span class="btn btn-sm btn-primary pull-left" style="margin-left: 10px;" onclick="myfrom.submit()">搜素<i class="icon-reply icon-only"></i></span>
        </div>

    </form>
    <div class="row">
        <div class="col-xs-12">
            <!-- PAGE CONTENT BEGINS -->
            <div class="row">
                <div class="col-xs-12">
                    <table id="simple-table" class="table  table-bordered table-hover">
                        <thead>
                        <tr>

                            <th class="detail-col">ID</th>
                            <th>企业</th>
                            <th>测站编码</th>
                            <th>断面名称</th>
                            <th>样品类型</th>
                            <th>经度</th>
                            <th>纬度</th>
<!--                            <th>监测频次</th>-->
                            <th>流域</th>
                            <th>水系</th>
                            <th>河流</th>
                            <th>省</th>
                            <th>市</th>
                            <th>区/县</th>
                            <th>测站地址</th>
                            <th>状态</th>
                            <th>操作</th>
                        </tr>
                        </thead>

                        <tbody>
                        {volist name="lists" id="vo"}
                        <tr>

                            <td>{$vo.id}</td>
                            <td>{$vo.company_name}</td>
                            <td>{$vo.station_code}</td>
                            <td>{$vo.posname}</td>
                            <td>{:$taskTypeArr[$vo['tasktype_id']]}</td>
                            <td>{$vo.lng}</td>
                            <td>{$vo.lat}</td>
<!--                            <td>{$vo.watershed}</td>-->
                            <td>{$vo.watershed}</td>
                            <td>{$vo.river_sys}</td>
                            <td>{$vo.river_name}</td>
                            <td>{$vo.province}</td>
                            <td>{$vo.city}</td>
                            <td>{$vo.county}</td>
                            <td>{$vo.station_add}</td>
                            <td>{if condition="$vo['status'] eq '1'"}启用{else/}禁用{/if}</td>

                            <td>

                                <a href='{:url("info","id=$vo[id]")}'>
                                    <span class="btn btn-xs btn-info">
                                                        编辑
                                    <i class="icon-reply icon-only"></i>
                                            </span>
                                </a>
                                <a href='javascript:void(0)' onclick="return alert_del('{:url(\"del\",\"id=$vo[id]\")}', '确认要删除这条记录吗？');"
                                <span class="btn btn-xs btn-danger">
                                                   删除
                                    <i class="icon-reply icon-only"></i>
                                            </span>
                                </a>
                            </td>

                        </tr>
                        {/volist}
                        </tbody>
                    </table>
                   
                </div><!-- /.span -->
            </div><!-- /.row -->
            {$lists->render()}
            <!-- PAGE CONTENT ENDS -->
        </div><!-- /.col -->
    </div><!-- /.row -->
</div><!-- /.page-content -->



